package com.remrbs.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.remrbs.mapper.MenuMapper;
import com.remrbs.domain.Menu;
@Service
public class MenuService{

    @Resource
    private MenuMapper menuMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return menuMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(Menu record) {
        return menuMapper.insert(record);
    }

    
    public int insertSelective(Menu record) {
        return menuMapper.insertSelective(record);
    }

    
    public Menu selectByPrimaryKey(Integer id) {
        return menuMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(Menu record) {
        return menuMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Menu record) {
        return menuMapper.updateByPrimaryKey(record);
    }

    
    public int updateBatch(List<Menu> list) {
        return menuMapper.updateBatch(list);
    }

}
